Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Unsafe atom operation #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix Unsafe atom operation #15

wants to merge 3 commits into from

Conversation

heri16
Copy link
Contributor

@heri16 heri16 commented Jul 25, 2016

We must never create atoms in Erlang based on external input, as this might cause the VM to crash.

This patch preloads known atoms and uses String.to_existing_atom/2 to avoid memory leaks, which mitigates risk of Denial of Service attack.

heri16 added 3 commits July 25, 2016 23:00
Should never allow external input from creating atoms in Erlang.
Because, it allows Denial Of Service using mime headers, causing the VM to crash.
Should never allow external input from creating atoms in Erlang.
Because, it allows Denial Of Service using mime headers, causing the VM to crash.
Bump version as API has changed.
Keys for header are now either string or atom.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant